package ro.sergiu.finder.models.property;

import ro.sergiu.finder.models.property.ComboAdapter;
import javax.swing.JTable;

/**
 *
 * @author toporjinschi
 */
public enum AutoresizeMode implements ComboAdapter {

    AUTO_RESIZE_SUBSEQUENT_COLUMNS(JTable.AUTO_RESIZE_SUBSEQUENT_COLUMNS, "Subsequent columns"),
    AUTO_RESIZE_OFF(JTable.AUTO_RESIZE_OFF, "Off"),
    AUTO_RESIZE_LAST_COLUMN(JTable.AUTO_RESIZE_LAST_COLUMN, "Last column"),
    AUTO_RESIZE_NEXT_COLUMN(JTable.AUTO_RESIZE_NEXT_COLUMN, "Next column"),
    AUTO_RESIZE_ALL_COLUMNS(JTable.AUTO_RESIZE_ALL_COLUMNS, "All columns");
    private final int id;
    private final String text;

    private AutoresizeMode(int id, String text) {
        this.id = id;
        this.text = text;
    }

    @Override
    public int getId() {
        return id;
    }

    @Override
    public String getAsString() {
        return text;
    }
}
